package com.property.manage.dao.rent;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.property.manage.model.flowingWater.FlowingWaterEntity;
import com.property.manage.model.flowingWater.FlowingWaterVo;
import com.property.manage.model.rent.RentEntity;
import com.property.manage.model.rent.RentVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 描述
 *
 * @author lwb
 * @since 2020/7/15
 */
@Repository
public interface RentMapper extends BaseMapper<RentEntity> {

    IPage<RentVo> getPage(@Param("page") IPage<RentVo> page, @Param("type")Integer type, @Param("villageId") Integer villageId, @Param("name")String name);
    IPage<RentVo> getHouseRentPage(@Param("page") IPage<RentVo> page, @Param("villageId") Integer villageId,@Param("building")Integer building,@Param("unit") Integer unit, @Param("roomNumber")String roomNumber);
    RentVo queryById(@Param("id")Integer id);
}
